#include "mainwindow.h"
#include "ui_mainwindow.h"
#include <QIcon>
#include <QToolBar>
MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent)
    , ui(new Ui::MainWindow)
{
    ui->setupUi(this);
    setWindowTitle("Collect Pictures");
    QIcon icon(":/demo-1.png");
    setWindowIcon(icon);
    QToolBar*toolbar=new QToolBar();
    this->addToolBar(toolbar);

    QAction*action1=new QAction();
    action1->setIcon(QIcon(":/demo-1.png"));

    QAction*action2=new QAction();
    action2->setIcon(QIcon(":/demo-1.png"));

    toolbar->addAction(action1);

    toolbar->addAction(action2);
}

MainWindow::~MainWindow()
{
    delete ui;
}

